package com.gb.demand.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shenzhiwen
 * @since 2020-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wemall_goods")
@ApiModel(value="Goods对象", description="")
public class Goods extends Model<Goods> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("addTime")
    private Date addTime;

    @TableField("deleteStatus")
    private Boolean deleteStatus;

    private Integer goodsClick;

    private String goodsDetails;

    private String goodsFee;

    @ApiModelProperty(value = "库存")
    private Integer goodsInventory;

    private String goodsInventoryDetail;

    @ApiModelProperty(value = "商品名")
    private String goodsName;

    @ApiModelProperty(value = "商品价格，（大池中的价格）")
    private BigDecimal goodsPrice;

    private String goodsProperty;

    @ApiModelProperty(value = "是否推荐")
    private Boolean goodsRecommend;

    @ApiModelProperty(value = "销量")
    private Integer goodsSalenum;

    private Date goodsSellerTime;

    @ApiModelProperty(value = "商品货号")
    private String goodsSerial;

    @ApiModelProperty(value = "0：上架中   1：仓库中  3：已删除，软删除")
    private Integer goodsStatus;

    private Integer goodsTransfee;

    private BigDecimal goodsWeight;

    @ApiModelProperty(value = "库存类型（全局配置还是规格配置）")
    private String inventoryType;

    private String seoDescription;

    private String seoKeywords;

    @ApiModelProperty(value = "当前店铺的售价")
    private BigDecimal storePrice;

    private Boolean storeRecommend;

    private Date storeRecommendTime;

    private String ztcAdminContent;

    private Date ztcApplyTime;

    private Date ztcBeginTime;

    private Integer ztcClickNum;

    private Integer ztcDredgePrice;

    private Integer ztcGold;

    private Integer ztcPayStatus;

    private Integer ztcPrice;

    private Integer ztcStatus;

    private Long gcId;

    private Long goodsBrandId;

    private Long goodsMainPhotoId;

    @ApiModelProperty(value = "商品所属店铺id（从大池中上架后修改为上架后店铺id）")
    private Long goodsStoreId;

    private Long ztcAdminId;

    private Integer goodsCollect;

    private Integer groupBuy;

    private Integer goodsChoiceType;

    private Long groupId;

    private Integer activityStatus;

    private Integer bargainStatus;

    private Integer deliveryStatus;

    @ApiModelProperty(value = "商品当前售价")
    private BigDecimal goodsCurrentPrice;

    private BigDecimal goodsVolume;

    private BigDecimal emsTransFee;

    private BigDecimal expressTransFee;

    private BigDecimal mailTransFee;

    private Long transportId;

    private Integer combinStatus;

    private Date combinBeginTime;

    private Date combinEndTime;

    private BigDecimal combinPrice;

    private BigDecimal descriptionEvaluate;

    private Boolean weixinShopHot;

    @TableField("weixin_shop_hotTime")
    private Date weixinShopHottime;

    private Boolean weixinShopRecommend;

    @TableField("weixin_shop_recommendTime")
    private Date weixinShopRecommendtime;

    @ApiModelProperty(value = "是否是大池中的商品，如果有内容（内容为大池中商品的id） 则是大池用户id：32811，userName：guangbosc， 大池商铺 id32784，的商品")
    private Long dachiGoods;

    @ApiModelProperty(value = "商品型号-同步老商城的p_code字段")
    private String code;

    @ApiModelProperty(value = "商品条形码")
    private String barCode;

    @ApiModelProperty(value = "安全库存（）默认五十")
    private Integer goodsSafeInventory;

    @ApiModelProperty(value = "小包装数量")
    private Integer packingNum1;

    @ApiModelProperty(value = "中包装数量")
    private Integer packingNum2;

    @ApiModelProperty(value = "整箱数量")
    private Integer packingNum3;

    @ApiModelProperty(value = "erp编码")
    private String erpId;

    @ApiModelProperty(value = "店铺排序")
    private Integer rank;

    @ApiModelProperty(value = "java本版本对应php版本的商品id  ，为-1：表示是分店铺中的商品")
    private Long phpid;

    @ApiModelProperty(value = "该商品是从哪个店铺复制来的，该店铺的店铺主键id")
    private Long copyfromstore;

    @ApiModelProperty(value = "该商品是哪个商品的复制品，填写这个商品的主键id")
    private Long copyfromgoodsid;

    @ApiModelProperty(value = "客户商品编码")
    private String clientGoodsCode;

    @ApiModelProperty(value = "财务编码")
    private String financialCode;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "商品编码- 同步老商城code字段")
    private String goodsCode;

    @ApiModelProperty(value = "内蒙古甘肃 商品id")
    private String goodsguid;

    @ApiModelProperty(value = "内蒙古甘肃 商品行情id")
    private String goodspriceguid;

    @ApiModelProperty(value = "河南接口 类别编号")
    private String hnLbbh;

    @ApiModelProperty(value = "河南接口 类别名称")
    private String hnLbmc;

    @ApiModelProperty(value = "河南政采接口，配件或服务属于哪个商品")
    private Long belongtoGoodsid;

    @ApiModelProperty(value = "河南政采接口，商品为  型号 ：1，配件：2，服务：3")
    private Integer hnGoodstype;

    @ApiModelProperty(value = "河南政采，商品是否报价")
    private Boolean hnIsoffer;

    @ApiModelProperty(value = "商品自定义参数")
    private String freeparam;

    @ApiModelProperty(value = "徽采类型描述")
    @TableField("updateType")
    private Integer updateType;

    @ApiModelProperty(value = "最小单位")
    private String minUnit;

    @ApiModelProperty(value = "上架时间")
    @TableField("upTime")
    private Date upTime;

    @ApiModelProperty(value = "是否是节能环保产品，1：是；0：不是")
    @TableField("isProtected")
    private Integer isProtected;

    @ApiModelProperty(value = "节能有效日期")
    @TableField("jieNengDate")
    private Date jieNengDate;

    @ApiModelProperty(value = "环保有效日期")
    @TableField("huanBaoDate")
    private Date huanBaoDate;

    @ApiModelProperty(value = "节能证书号")
    @TableField("jieNengCertificate")
    private String jieNengCertificate;

    @ApiModelProperty(value = "节能证书图片地址")
    @TableField("jieNengCertificateUrl")
    private String jieNengCertificateUrl;

    @ApiModelProperty(value = "节能发证机构")
    @TableField("jieNengAuthorites")
    private String jieNengAuthorites;

    @ApiModelProperty(value = "环保证书号")
    @TableField("huanBaoCertificate")
    private String huanBaoCertificate;

    @ApiModelProperty(value = "环保证书图片地址")
    @TableField("huanBaoCertificateUrl")
    private String huanBaoCertificateUrl;

    @ApiModelProperty(value = "环保发证机构")
    @TableField("huanBaoAuthorites")
    private String huanBaoAuthorites;

    @ApiModelProperty(value = "条形码图片")
    @TableField("bar_codeUrl")
    private String barCodeurl;

    @ApiModelProperty(value = "商品税率")
    private BigDecimal goodsTaxrate;

    @ApiModelProperty(value = "最小购买数量")
    private Integer goodsMinbuynum;

    private String goodsAftersalesservice;

    private String goodsPackinglist;

    @TableField("jdUrl")
    private String jdUrl;

    @TableField("jdPrice")
    private BigDecimal jdPrice;

    @TableField("tmUrl")
    private String tmUrl;

    @TableField("snUrl")
    private String snUrl;

    @TableField("gmUrl")
    private String gmUrl;

    @ApiModelProperty(value = "国网价格分1.实时价2.固定价")
    private Integer guowangPriceType;

    @ApiModelProperty(value = "SPU型号库编码")
    private String guowangSpuId;

    @ApiModelProperty(value = "国网资质")
    private String guowangZizhiImg;

    @ApiModelProperty(value = "国网详情图片")
    private String guowangDetailImg;

    private String guowangZhutuImg;
    @TableField("gw_invoiceName")
    private String gwInvoiceName;//开票名称
    @TableField("gw_invoiceSpec")
    private String gwInvoiceSpec;//开票规格
    @TableField("gw_invoiceCompany")
    private String gwInvoiceCompany;//开票单位
    @TableField("gw_taxSortName")
    private String gwTaxSortName;//税收分类名称
    @TableField("gw_taxSortCode")
    private String gwTaxSortCode;//税收分类编码

    @TableField("updateTime")
    private Date updateTime;

    private String certStartTime;

    private String certEndTime;

    private Integer isShow;

    @ApiModelProperty(value = "商品添加的状态 如果为1就是添加过了")
    @TableField("appendixUrls")
    private String appendixUrls;
}
